# 三次方格式化
a = str(eval(input())**3)
if len(a)<20:
    print(a.center(20, '-'))
else:
    print(a)